package testaux;

public class ExprList {
    public final Expr head;
    public final ExprList tail;

    public ExprList(Expr head) {
        this.head = head;
        this.tail = null;
    }

    public ExprList(Expr head, ExprList tail) {
        this.head = head;
        this.tail = tail;
    }

    public String toString() {
        return "| " + head.toString() + " |" + (tail == null ? "" : tail.toString());
    }
}
